package software_construction.PatternProject.d2_factory.demo3;


import software_construction.PatternProject.d2_factory.demo3.cpu.Cpu;
import software_construction.PatternProject.d2_factory.demo3.factory.AmdCpuFactory;
import software_construction.PatternProject.d2_factory.demo3.factory.IntelCpuFactory;

public class ClientTest {
    public static void main(String[] args) {
        ComputerStore computerStore = new ComputerStore();
        Cpu cpu=computerStore.orderCpu(new AmdCpuFactory());
        Cpu cpu1=computerStore.orderCpu(new IntelCpuFactory());
        System.out.println(cpu.getName());
    }
}
